import type { FormInstance } from '@arco-design/web-vue/es/form';

export const scrollToErrorItem = (form: FormInstance | undefined) => {
  form?.$el.querySelector?.('.arco-form-item-status-error').scrollIntoView({
    behavior: 'smooth',
    block: 'center',
  });
}
